public class msg{

	public static String Hello = "HELLO";

	public static String Hi = "HI";

	public static String Bye = "BYE";

	public static String Later ="LATER";

	public static String StatusT = "STATUS true";

	public static String StatusF = "STATUS false";

	public static String E1 = "ERROR 0x001";

	public static String E2 = "ERROR 0x002";

	public static String E3 = "ERROR 0x003";

	public static String E1m = "port already in use : server can not start";

	public static String E3m = "incorrect or malformed protocol message";

        public static String E4 = "ERROR 0x004";

        public static String E5 = "ERROR 0x005";

	public static String Register = "REGISTER";

	public static int RegisterFieldLength = 4;

	public static String Query = "QUERY";

	public static int QueryFieldLength = 4;

	public static String QueryReply = "QUERY-REPLY";
	
        public static String QueryReply(String id, int count)
        {
            return msg.QueryReply + " "+ id + " "+String.valueOf(count)+"";
        }

	public static int QueryReplyFieldLength = 3;

	public static String Response = "RESPONSE";

        public static String Response(String id, int serial, String s ){

            return msg.Response + " "+ id + " "+String.valueOf(serial)+ " "+s;
        }
	public static int ResponseFieldLength = 6;

        public static String Remove = "REMOVE";

        public static int RemoveFieldLength = 4;

        public static String End = "END";

        public static String Shutdown = "SHUTDOWN";
        
        public static String Ok = "OK";

        public static String Sleep = "SLEEP";
}
